//
//  LCZdetailColumnCell.m
//  PersonalNews
//
//  Created by dllo on 15/12/1.
//  Copyright © 2015年 changshuhua. All rights reserved.
//

#import "LCZdetailColumnCell.h"

@implementation LCZdetailColumnCell



- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.picImageView = [[LCZBaseImageView alloc]init];
        [self.contentView addSubview:self.picImageView];
        
        self.titleLabel = [[LCZBaseLabel alloc]init];
        [self.contentView addSubview:self.titleLabel];
        
        self.lineView = [[LCZBaseView alloc]init];
        [self.contentView addSubview:self.lineView];
        
        self.fromLabel = [[LCZBaseLabel alloc]init];
        [self.contentView addSubview:self.fromLabel];
        
    }
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.picImageView.frame = CGRectMake(10, 10, 100, 76);
    self.picImageView.backgroundColor = [UIColor orangeColor];
    
    self.titleLabel.frame = CGRectMake(130, 10, self.contentView.frame.size.width - 150, 60);
    
    self.lineView.frame = CGRectMake(0, 96, self.contentView.frame.size.width, 4);
    self.lineView.backgroundColor = [UIColor colorWithRed:0.88 green:0.89 blue:0.9 alpha:1];
    
    self.fromLabel.frame = CGRectMake(130, 100 - 34, 150, 20);
    self.fromLabel.textColor = [UIColor colorWithRed:0.62 green:0.62 blue:0.62 alpha:1];
    self.fromLabel.font = [UIFont systemFontOfSize:12];
}


@end
